package com.pri.chat.activity;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;

import com.pri.chat.R;
import com.pri.chat.application.APP;
import com.pri.chat.application.ActivityBean;
import com.pri.chat.base.BaseActivity;
import com.pri.chat.utils.statusbar.StatusBarUtil;
import com.vondear.rxtool.RxActivityTool;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;

/**
 * 描述：添加类的描述
 *
 * @author
 * @time 2020/5/9
 */
public class SearchMemberDhActivity extends AppCompatActivity {
    @BindView(R.id.userInfoRelation)
    View userInfoRelation; //用户信息
    @BindView(R.id.frameView1)
    View frameView1;
    @BindView(R.id.clickView1)
    View clickView1;
    @BindView(R.id.clickBtn1)
    View clickBtn1;

    @BindView(R.id.searchBtn)
    View searchBtn;


    @BindView(R.id.frameView2)
    View frameView2;
    @BindView(R.id.clickView2)
    View clickView2;
    @BindView(R.id.clickBtn2)
    View clickBtn2;

    @BindView(R.id.name)
    TextView name;
    @BindView(R.id.age)
    TextView age;
    @BindView(R.id.vip_bg)
    TextView vip_bg;
    @BindView(R.id.vip_super_bg)
    TextView vip_super_bg;

    @BindView(R.id.view11)
    View view11;
    @BindView(R.id.view12)
    View view12;
    @BindView(R.id.view21)
    View view21;
    @BindView(R.id.view22)
    View view22;

    private Context mContext;
    private Activity activity;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayoutId());
        StatusBarUtil.setStatusBar(this,true,0,false,true);
        activity = this;
        mContext = this;
        ButterKnife.bind(this);
        initView();
    }

    protected int getLayoutId() {
        return R.layout.activity_search_member_dh_layout;
    }

    protected void initView() {
        setTitle("搜索用户");
        name.setText("水墨沙");
        age.setText("19");
        vip_bg.setText("VIP");
        vip_super_bg.setText("SVIP");

        view11.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });
        view12.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });
        view21.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });
        view22.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });
    }

    @OnClick({R.id.searchBtn, R.id.clickBtn1, R.id.clickBtn2, R.id.clickView1, R.id.clickView2, R.id.userInfoRelation})
    public void onClick(View v){
        if(v.getId() == R.id.searchBtn || R.id.clickView1 == v.getId() || v.getId() == R.id.clickBtn1){
            frameView1.setVisibility(View.GONE);
            frameView2.setVisibility(View.VISIBLE);
            userInfoRelation.setVisibility(View.VISIBLE);
        }else if(v.getId() == R.id.userInfoRelation || v.getId() == R.id.clickBtn2 || v.getId() == R.id.clickView2){
            RxActivityTool.skipActivity(this, OtherPeopleMsgDhActivity.class);
            finish();
        }
    }
}
